package com.vgemv.jsutilitysdk.Email;

import com.vgemv.jsutilitysdk.Application.JsBaseApplication;

public class JsEmailConfig {
    public  String host;
    public  String user;
    public  String password;
    public int port;
    //是否需要密码验证
     public boolean isNeedAuth;



    public static JsEmailConfig JsConfig() {
        JsEmailConfig config = new JsEmailConfig();
        config.host = "smtp-enthk.21cn.com";
        config.user = "gaoyb@vgemv.com";
        config.password = "Junshi!Q@W#E";
        config.port = 465;
        config.isNeedAuth = true;
        return config;
    }

    public static JsEmailConfig QqConfig() {
        JsEmailConfig config = new JsEmailConfig();
        //qq邮箱使用的是qq的smtp服务器,通过向qq的smtp写相关数据,让qq的smtp发送邮件.
//        config.host = "smtp.qq.com";
        config.host = "14.18.175.202";
        config.user = "vgemv@qq.com";
        //QQ邮箱等验证需要授权码.
        config.password = "rzfoaplwtqpbddag";
        config.port = 465;
        config.isNeedAuth = true;
        return config;
    }
    public static JsEmailConfig yao63config() {
//        props.put("mail.smtp.host", "220.181.12.16"); //smtp.163.com
        return new JsEmailConfig();
    }
}
